package com.lemon.components.wechart.order.supporter;

import com.lemon.components.wechart.enums.MsgTypeEnum;
import com.lemon.components.wechart.order.supporter.msgContent.VoiceContent;

public class SendVoiceMsgOrder extends SendMsgOrder {

	private static final long serialVersionUID = -7727539078271894686L;
	// openid
	private String touser;
	private MsgTypeEnum msgtype;
	private VoiceContent voice;

	@Override
	public void check() {
		validateHasText(touser, "touser");
		validateNotNull(msgtype, "msgtype");
		validateNotNull(voice, "voice");
		validateHasText(voice.getMediaId(), "getMediaId");
	}

	public String getTouser() {
		return touser;
	}

	public void setTouser(String touser) {
		this.touser = touser;
	}

	public MsgTypeEnum getMsgtype() {
		return msgtype;
	}

	public void setMsgtype(MsgTypeEnum msgtype) {
		this.msgtype = msgtype;
	}

	public VoiceContent getVoice() {
		return voice;
	}

	public void setVoice(VoiceContent voice) {
		this.voice = voice;
	}

	@Override
	public String toString() {
		return "SendVoiceMsgOrder [touser=" + touser + ", msgtype=" + msgtype + ", voice=" + voice + "]";
	}

}
